Fix the check for no changes to position and size.
authorRichard Hult <richard@imendio.com>
Mon, 10 Dec 2007 19:49:52 +0000 (19:49 +0000)
committerRichard Hult <rhult@src.gnome.org>
Mon, 10 Dec 2007 19:49:52 +0000 (19:49 +0000)
2007-12-10  Richard Hult  <richard@imendio.com>

* gdk/quartz/gdkwindow-quartz.c: (move_resize_window_internal):
Fix the check for no changes to position and size.

svn path=/trunk/; revision=19147

ChangeLog
gdk/quartz/gdkwindow-quartz.c

index 3f4b7e2e2aadf668303231c011dc206748a01487..164a55cfc3fe151b0cf7d8a9ddfa3237bfdbf73d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-12-10  Richard Hult  <richard@imendio.com>
+
+       * gdk/quartz/gdkwindow-quartz.c: (move_resize_window_internal):
+       Fix the check for no changes to position and size.
+
 2007-12-10  Richard Hult  <richard@imendio.com>
 
        * gdk/quartz/GdkQuartzView.c: Ignore drawRect calls with zero
index a5e2274a62cfc829aa1f62c2646a61bd28697fca..62719e0936a6560f44c60918d91332c6dc227eed 100644 (file)
@@ -1162,10 +1162,10 @@ move_resize_window_internal (GdkWindow *window,
 
   impl = GDK_WINDOW_IMPL_QUARTZ (private->impl);
 
-  if ((x == private->x) &&
-      (y == private->y) &&
-      (width == impl->width) &&
-      (height == impl->height))
+  if ((x == -1 || (x == private->x)) &&
+      (y == -1 || (y == private->y)) &&
+      (width == -1 || (width == impl->width)) &&
+      (height == -1 || (height == impl->height)))
     {
       return;
     }